package com.tjbank.cssys.web.service.impl;

import com.tjbank.cssys.domain.CkLog;
import com.tjbank.cssys.repository.CkLogMapper;
import com.tjbank.cssys.rpc.domain.CkInsertLog;
import com.tjbank.cssys.rpc.service.InsertLog;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;

public class InserLogImpl implements InsertLog {

    @Autowired
    private CkLogMapper ckLogMapper;
    @Override
    public void insertLog(CkInsertLog ckInsertLog) {
        CkLog ckLog =new CkLog();
        BeanUtils.copyProperties(ckInsertLog,ckLog);
        ckLogMapper.addInsert(ckLog);
    }
}
